<h1>Search</h1>
<?php include_partial('searchForm', array('queryString' => $queryString, 'searchError' => $searchError, 'queryTypeLimiter' => $queryTypeLimiter)) ?>

<?php if ($queryString != ''): ?>
<?php slot('page_title', 'Search results for ' . $queryString) ?>
<?php else: ?>
<?php slot('page_title', 'Search - ' . sfConfig::get('app_general_system_name')) ?>

<?php endif; ?>    
<?php if ($searchResults != null): ?>

            <div id="search-results">
                <h1>Results</h1>
                <?php if ($queryTypeLimiterName != null): ?>
                <p class="search-results-limiter-name">
                    Showing results for <?php echo $queryTypeLimiterName ?>.
                </p>
                <?php endif; ?>
    <?php include_partial('collectionListView', array('collectionItemList' => $searchResults)) ?>
        </div>



<?php slot('sidebar') ?>
            <div class="sidebar-block search-limiter">
                <p class="sidebar-block-header">Search In</p>
                <ul class="navigation-list search-limit-list">
                    <li class="navigation-block">
                        <a class="context-action <?php echo $queryTypeLimiter==''?'selected':'' ?>" href="<?php echo url_for('SearchQuery', array('queryString' => $queryString, 'queryTypeLimiter' => '')) ?>">Everything</a>
                    </li>
        <?php foreach ($collectionTypes as $collectionType): ?>
                <li class="navigation-block">
                    <a class="context-action <?php echo $collectionType->getUin()==$queryTypeLimiter?'selected':'' ?>" href="<?php echo url_for('SearchQuery', array('queryString' => $queryString, 'queryTypeLimiter' => $collectionType->getUin())) ?>"><?php echo $collectionType->getTypeName() ?></a>
                </li>
        <?php endforeach; ?>
            </ul>
        </div>
<?php end_slot(); ?>



<?php endif; ?>


